package com.base.service.workflow.entity;

import com.base.core.framework.sql.entity.BaseV1Ext;
import com.base.service.workflow.bo.AssignmentStatusEnum;
import com.gitee.magic.jdbc.persistence.annotation.Entity;
import com.gitee.magic.jdbc.persistence.annotation.Table;
import com.gitee.magic.jdbc.persistence.source.jdbc.script.annotations.ColumnDef;
import com.gitee.magic.jdbc.persistence.source.jdbc.script.annotations.Indexes;
import com.gitee.magic.jdbc.persistence.source.jdbc.script.annotations.TableDef;
import com.gitee.magic.jdbc.persistence.source.jdbc.script.annotations.indexes.Normal;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author start 
 * @date 2022-03-17 09:37:26
 */
@Getter@Setter@ToString
@Entity("assignment")
@Table("wor_assignment")
@TableDef(comment = "流程分配")
public class AssignmentDO extends BaseV1Ext {

	private static final long serialVersionUID = 1L;
	
	public AssignmentDO(){}
    
	@ColumnDef(indexes = @Indexes(normal = @Normal),comment = "实例ID")
	private Long processId;
    
	@ColumnDef(indexes = @Indexes(normal = @Normal),comment = "流转ID")
	private Long flowId;

    @ColumnDef(indexes = @Indexes(normal = @Normal), comment = "用户ID")
	private Long userId;
	
	@ColumnDef(comment = "状态")
	private AssignmentStatusEnum status;

	@ColumnDef(comment = "描述",isNull = true)
	private String description;

}
